'use strict';

angular.module('fbdApp.templateModule')

.controller('showArticlesCtrl', function($scope) {

  $scope.isActive = -1;

  $scope.expandArticles = function(i) {
    // 已展开此文章
    // console.log(i);
    if ($scope.isActive == i) {
      $scope.isActive = -1;
    } else {
      $scope.isActive = i;
    }
  };
});
